package com.lyl.activiti.demo.listener;

import java.util.logging.Logger;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;

public class DoTransaction implements JavaDelegate {
	private static final Logger log = Logger.getLogger(DoTransaction.class
			.getName());

	public void execute(DelegateExecution execution) throws Exception {
		String varOutFromSubprocess = (String) execution
				.getVariable("varOutFromSubprocess");
		log.info("in mainprocess get(varOutFromSubprocess): "
				+ varOutFromSubprocess);

		log.info("variavles=" + execution.getVariables());
		execution.setVariable("m:dt", "Mainprocess:DoTransaction");
		log.info("I am DoTransaction in mainprocess.");
	}

}
